/**
 * Created by Xiaoming on 2017/9/28.
 */
//var html5mode = true;
var html5mode = false;

var mqtt_ws ="ws://120.27.192.219:3000";//连接mqtt服务器地址
var scan_viewurl = "component-unmannemall-scan/view";
var shopmenu_viewurl = "component-unmannemall-shopmenu/view";//shopmenu view
var coupon_viewurl = "component-unmannemall-coupon/view";//coupon view
var service_viewurl = "component-unmannemall-order/view";//service view
var auth_viewurl = "component-common-auth/view";//auth view
var wxauth_viewurl = "component-service-wxauth/view";//xwauth view
var lock_viewurl = "component-unmannemall-lock/view";
var paysuccess_viewurl  = "component-unmannemall-paysuccess/view";
var friendlylink_viewurl  = "component-unmannemall-friendlylink/view";

//货柜服务地址
//var cupboardurl = "http://inner.test.shuwang.info/device/cupboarddelivery/";
var cupboardurl = "http://cupboard.test.shuwang.info/cupboard/cupboard-business/";
var privilege="http://inner.test.shuwang.info/mall/privilege/";
var mallurl = "http://inner.test.shuwang.info/mall/mall/";
var mallorder = "http://inner.test.shuwang.info/mall/mallorder/";
var verificationurl = 'http://inner.test.shuwang.info/mall/verification/';
var uc_baseurl = "http://inner.test.shuwang.info/mall/usercenter/";
var uploadUrl = "http://sfcommon.test.shuwang.info/fileupload/upload/1010";
var sso_baseurl = "http://gw.test.shuwang.info/security/";//统一登录接口
var mqhpurl = 'http://inner.test.shuwang.info/message/mqhp/';
//景洋的调取微信接口认证服务
var wx_jssdkurl = "http://opera.test.shuwang.info/profit/";

var wxucUrl ='http://114.55.90.31:81/ucauth/';

var tempwxuserinfo = "jsapi/webauth";
var mall_userauth = {
    userauth_url: "http://inner.test.shuwang.info/operator/userauth/",
    memopen_url: "http://opera.test.shuwang.info/profit/",
    wxmp_appid: "wx277ac1ea258fab7a",//微信公众号appid
    component_appid: "wx55cba415e7e88786",//公众号开发者平台appid  易盟科技
};
var jumpurl = function(orderid,wxopenid,paystyle,subject,buyerid,total_amount,detail,appid,shopid){
    var targeturl = "http://opera.test.shuwang.info/unmanmall/paysuccess";
    var notifyUrl= "http://inner.test.shuwang.info/mall/mallorder/orders/paysuccess/";
    //var url = "http://opera.test.shuwang.info/wmapp/fgpassword";
    return "http://inner.test.shuwang.info/mall/mallpaycenter/orderspay/create/"+orderid+"?returnUrl="+encodeURIComponent(targeturl)+"&jumpUrl="+encodeURIComponent(targeturl)+"&notifyUrl="+encodeURIComponent(notifyUrl)+"&paystyle="+paystyle+"&directpay=true"+"&subject="+subject+"&buyerid="+buyerid+"&total_amount="+total_amount+"&detail="+detail+"&appid="+appid+"&shopid="+shopid+"&paystyle=107";
};
var obj_url = "http://opera.test.shuwang.info/unmanmall/scan";